import { axios } from '@/utils/request'

/**
 * 分页查询
 */
export function fetchList (params) {
  return axios({
    url: '/instance/page',
    method: 'get',
    params: params
  })
}

/**
 * 启动
 */
export function start (modelId, params) {
  console.log(params)
  return axios({
    url: '/instance/start/' + modelId,
    method: 'post',
    params: params
  })
}